# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=pspg
pkgver=5.5.5
pkgrel=0
pkgdesc="A unix pager optimized for psql"
url="https://github.com/okbob/pspg"
arch="all"
options="!check" # there is no tests
license="BSD-2-Clause"
makedepends="automake autoconf libpq-dev ncurses-dev readline-dev"
source="https://github.com/okbob/pspg/archive/$pkgver/$pkgname-$pkgver.tar.gz"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
965edb622ebb827b46c6d4f2b9d5a05756570162abcf9eac9e9b381375e3297c94fa9f868c5f6260c618316cdef0bb294311b450c9bf2aa44566bb2d718e48b5  pspg-5.5.5.tar.gz
"
